(function(angular) {
	'use strict';
	angular.module('fs.waf').controller('apf.piUpload.uploadPendingController', uploadPendingController);
	uploadPendingController.$inject = [ '$scope', 'Constants', 'modalService', 'gridService', 'layoutConfig', 'validatorConfig', 'authService',
			'commonService'];
	function uploadPendingController($scope, Constants, modalService, gridService, layoutConfig, validatorConfig, authService, commonService) {
		var ctrl = this, param = $scope.$stateParams.params;
		ctrl.layoutConfig = layoutConfig;
		ctrl.validatorConfig = validatorConfig;
		ctrl.piLoad = {};
		
		ctrl.init = function() {
			//param.dataKey
			authService.pendingView(param).then(function(response) {
				if (response.data && response.data.model && response.data.task) {
					ctrl.piLoad = response.data.model;
					ctrl.piLoad.taskId = response.data.task.taskId;
				}
			});
			
		};
	}
})(angular);